package cn.kpi.service.attendance;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kpi.entity.attendance.AttDetailEntity;
import cn.kpi.entity.attendance.AttSummaryEntity;
import cn.kpi.entity.attendance.AttTbBatchEntity;

public interface IAttTbService {
    public List<AttSummaryEntity> GetAttTbListByWhere(String where) throws Exception;

    public List<AttSummaryEntity> GetAttTbListByUser(String where, String orgid) throws Exception;

    public List<AttSummaryEntity> GetAttTbListNotUser(String where, String orgid) throws Exception;

    public int UpdateApproverUser(Long approverUser,Long attsummaryid) throws Exception;

    public int GetAttTbListCountByWhere(String where) throws Exception;

    public int InsertAttTb(List<AttDetailEntity> list) throws Exception;

    public AttSummaryEntity GetAttTbSummaryByWhereForMzpd(String where) throws Exception;

    public List<AttSummaryEntity> GetAttTbSummaryListByWhereForMzpd(String where) throws Exception;

    public int CreateInsertAttTb(AttTbBatchEntity entity) throws Exception;

    public int CreateInsertAttTbNoDetail(AttTbBatchEntity entity) throws Exception;

    public int CreateInsertAttTbByUserid(AttTbBatchEntity entity) throws Exception;

    public AttSummaryEntity GetAttTbAttsummaryById(Long attsummaryid) throws Exception;

    public List<AttSummaryEntity> GetAttTbListByWhereOrderBy(String where) throws Exception;

    public int UpdateAttKH(Long orgsummaryid, Long szdw, Long rsgxszdw, String szdwname, String rsgxszdwname, Long attsummaryid);

    public int DeleteKQ(Long attsummaryid);

    public List<AttTbBatchEntity> GetOrgSummaryList(Long orgid,String orgsmytype) throws Exception;

    public int ChangeOrgid(Long userid,Long orgid);
}
